<script type="text/javascript">//<![CDATA[

function del(code_orl) {
  jQuery('#form').jaAction({ 
    formAttr : 'method=post&action=procCodeDelete.me',
    direct : _mei_gb_params + '&code_orl=' + code_orl,
    ask : 'del',
    afterSend : function() { alert("완료되었습니다."); location.reload(); }
  });
}

//]]></script>

<div id="sub_column_content">
  <form id="form" method="get" action="?">
  <input type="hidden" id="code_orl" name="code_orl" value="" />

  <#include "./admin.sub.html">

  <div class="document-list">
  <table cellspacing="0" border="1" summary="document list" class="table-list">
  <caption>Total ${paging.total_count?string(",###")} Page ${paging.page?string(",###")}/${paging.total_page?string(",###")}</caption>
  <colgroup>
  <col width="50"><col width="150"><col><col width="200"><col width="100">
  </colgroup>

  <thead>
  <tr>
  <th scope="col"></th>
  <th scope="col">코드아이디</th>
  <th scope="col">제목</th>
  <th scope="col">비고</th>
  <th scope="col">등록일</th>
  </tr>
  </thead>

  <tbody>

  <#list O.listCode as obj>
  <tr>
  <td>
  <a href= "./dispCodeInsert.me${param.get('?code_orl=${obj.code_orl}')?html}" title="설정"><span class="iconset setting"></span></a>
  <a href="javascript:del('${obj.code_orl}');" title="삭제"><span class="iconset delete"></span></a>
  </td>
  <td>${obj.code_id}</td>
  <td class="title">${obj.title}</td>
  <td>${obj.comment}</td>
  <td><#if obj.rdate != ""><#assign rdate  = obj.rdate ?datetime("yyyyMMddHHmmss")>${rdate ?string("yyyy/MM/dd ")}</#if></td>
  </tr>
  </#list>

  <#if paging.total_count == 0>
  <tr><td colspan="5" class="zero">등록된 자료가 없습니다.</td></tr>
  </#if>

  </tbody>

  </table>
  </div>

<div class="document-foot-menu">
  <#if MEI_GRANT_WRITE>
    <span class="button medium icon"><a href="./dispCodeInsert.me${param.get('?')?html}"><span class="iconset add"></span>추가</a></span>
  </#if>
</div>
    <@pagenavigator url = param.get('?page=')?j_string form="#form" params = paging />

  </form>



</div>